<template>
  添加、修改、查看的页面，根据 moduleID 加载需要的表单的 meta 3<br>
  <!--表单控件-->
  <my-form
    v-bind="formMeta"
    :model="model"
  />

</template>

<script lang="ts">
  import { defineComponent, reactive } from 'vue'
  import myForm from './20-form-comp.vue'
  import formMeta from './form.json'

  export default defineComponent({
    name: 'nf-ui-core-form-page-test',
    components: {
      myForm
    },
    props: {
      moduleID: { // 模块ID
        type: [Number, String],
        default: 1 
      }
    },
    setup(props) {
      console.log('读取的 json：', formMeta)

      const model = reactive({
        name: 'jyk'
      })

      return {
        formMeta,
        model
      }
    }
  })

</script>